package com.cqqec.boot.service.impl;

import com.cqqec.boot.entity.User;
import com.cqqec.boot.mapper.UserMapper;
import com.cqqec.boot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper UserMapper;

    /**
     * 根据用户名查询用户
     * @param username
     * @return
     */
    @Override
    public User getUsername(String username) {
        return UserMapper.getUsername(username);
    }

}
